package org.javamianshi.core;

/**
 * Created by Fan on 2017/3/2.
 */
public class Bases {
    private String baseName = "base";
    public Bases()
    {
        callName();
    }
    public void callName()
    {
        System. out. println(this.baseName);
    }

}
class Sub extends Bases
{
    private String baseName = "sub";

    public void callName()
    {
        System. out. println (this.baseName) ;
    }
    public static void main(String[] args)
    {
        Bases b = new Sub();
    }
}
